home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / strlib.zip / ASCII.H < prev    next >
Text File  |  1993-01-04  |  3KB  |  57 lines

  1.  
  2. /*  File   : strings.d/ascii.h
  3.     Author : Richard A. O'Keefe
  4.     Updated: 28 April 1984
  5.     Purpose: Define Ascii mnemonics.
  6.  
  7.     This file defines the ASCII control characters.  Note that these
  8.     names refer to their use in communication; it is an ERROR to use
  9.     these names to talk about keyboard commands.  For example, DO NOT
  10.     use EOT when you mean "end of file", as many people prefer ^Z (if
  11.     the Ascii code were taken seriously, EOT would log you off and
  12.     hang up the line as well).  Similarly, DO NOT use DEL when you
  13.     mean "interrupt", many people prefer ^C.  When writing a screen
  14.     editor, you should speak of tocntrl('C') rather than ETX (see the
  15.     header file "ctypes.h").
  16. */
  17.  
  18. #define NUL     '\000'  /* null character */
  19. #define SOH     '\001'  /* Start Of Heading, start of message */
  20. #define STX     '\002'  /* Start Of Text, end of address */
  21. #define ETX     '\003'  /* End of TeXt, end of message */
  22. #define EOT     '\004'  /* End Of Transmission */
  23. #define ENQ     '\005'  /* ENQuiry "who are you" */
  24. #define ACK     '\006'  /* (positive) ACKnowledge */
  25. #define BEL     '\007'  /* ring the BELl */
  26. #define BS      '\010'  /* BackSpace */
  27. #define HT      '\011'  /* Horizontal Tab */
  28. #define TAB     '\011'  /* an unofficial name for HT */
  29. #define LF      '\012'  /* Line Feed (does not imply cr) */
  30. #define NL      '\012'  /* unix unofficial name for LF: new line */
  31. #define VT      '\013'  /* Vertical Tab */
  32. #define FF      '\014'  /* Form Feed (new page starts AFTER this) */
  33. #define CR      '\015'  /* Carriage Return */
  34. #define SO      '\016'  /* Shift Out; select alternate character set */
  35. #define SI      '\017'  /* Shift In; select ASCII again */
  36. #define DLE     '\020'  /* Data Link Escape */
  37. #define DC1     '\021'  /* Device Control 1 */
  38. #define XON     '\021'  /* transmitter on, resume output */
  39. #define DC2     '\022'  /* Device Control 2 (auxiliary on) */
  40. #define DC3     '\023'  /* Device Control 3 */
  41. #define XOFF    '\023'  /* transmitter off, suspend output */
  42. #define DC4     '\024'  /* Device Control 4 (auxiliary off) */
  43. #define NAK     '\025'  /* Negative AcKnowledge (signal error) */
  44. #define SYN     '\026'  /* SYNchronous idle */
  45. #define ETB     '\027'  /* End of Transmission Block, logical end of medium */
  46. #define CAN     '\030'  /* CANcel */
  47. #define EM      '\031'  /* End of Medium */
  48. #define SUB     '\032'  /* SUBstitute */
  49. #define ESC     '\033'  /* ESCape */
  50. #define FS      '\034'  /* File Separator */
  51. #define GS      '\035'  /* Group Separator */
  52. #define RS      '\036'  /* Record Separator */
  53. #define US      '\037'  /* Unit Separator */
  54. #define SP      '\040'  /* SPace */
  55. #define DEL     '\177'  /* DELete, rubout */
  56.  
  57.